package com.hdoit.ares.web.brokerage.modelconfig;
import com.tennetcn.common.enums.regular.MathRegularExpressions;
import com.tennetcn.component.attribute.DateTimeAttribute;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.RegularExpressionAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      yujinhui
 * @email       
 * @createtime  2017年12月14日 18:52:43
 * @comment
 */
public class CarShareBrokerageConfig extends ModelMetadataAttributeConfiguration{
    public CarShareBrokerageConfig(){
        this.setProperty("customerId")
            .hasAttribute(new DisplayNameAttribute("客户id"));

        this.setProperty("carBrokerageId")
            .hasAttribute(new DisplayNameAttribute("车险佣金id"));

        this.setProperty("generateDate")
            .hasAttribute(new DisplayNameAttribute("生成时间"))
            .hasAttribute(new DateTimeAttribute());

        this.setProperty("promote")
            .hasAttribute(new DisplayNameAttribute("推广奖百分比"));

        this.setProperty("firstShare")
            .hasAttribute(new DisplayNameAttribute("一级分享奖百分比"));

        this.setProperty("secondShare")
            .hasAttribute(new DisplayNameAttribute("二级分享奖百分比"));

        this.setProperty("server")
            .hasAttribute(new DisplayNameAttribute("服务奖百分比"));

        this.setProperty("hatch")
            .hasAttribute(new DisplayNameAttribute("孵化奖百分比"));

        this.setProperty("sort")
            .hasAttribute(new DisplayNameAttribute("分润序号位"))
            .hasAttribute(new RegularExpressionAttribute(MathRegularExpressions.naturalNumber));

        this.setProperty("groupNum")
            .hasAttribute(new DisplayNameAttribute("分组序号"))
            .hasAttribute(new RegularExpressionAttribute(MathRegularExpressions.naturalNumber));

        this.setProperty("confirmState")
            .hasAttribute(new DisplayNameAttribute("确认状态"));

    }
}